import { defineConfig } from "tsup";
import pkg from "./package.json";

export default defineConfig({
	entry: ["src/index.ts", "src/providers/*"],
	splitting: false,
	sourcemap: true,
	clean: true,
	dts: true,
	format: ["cjs", "esm"],
	external: Object.keys(pkg.optionalDependencies ?? {}),
	target: "es2020",
});
